package com.wg.wuge.study.designmodel.openclosedesigndemo;

import java.util.ArrayList;
import java.util.List;

public class Alert {
    private List<AlertHandler> alertHandlerList = new ArrayList<>();
    public void addList(AlertHandler alertHandler){
        this.alertHandlerList.add(alertHandler);
    }
    public void check(ApiStatInfo apiStatInfo) {
        for (AlertHandler alertHandler : alertHandlerList) {
            alertHandler.check(apiStatInfo);
        }
    }
}
